﻿using RpcModel;
using SqlSugar;

namespace RpcCentral.Model
{
    public class ServerTransmitConfig
    {
        public long Id
        {
            get;
            set;
        }
        /// <summary>
        /// 服务节点Id
        /// </summary>
        public long SeverId
        {
            get;
            set;
        }

        /// <summary>
        /// 方案名称
        /// </summary>
        public string Scheme
        {
            get;
            set;
        }
        /// <summary>
        /// 负载均衡类型
        /// </summary>
        public TransmitType TransmitType
        {
            get;
            set;
        }
        /// <summary>
        /// 负载配置
        /// </summary>
        [SugarColumn(IsJson = true, ColumnDataType = "varchar(max)")]
        public TransmitConfig[] TransmitConfig
        {
            get;
            set;
        }
        /// <summary>
        /// 版本号
        /// </summary>
        public int VerNum
        {
            get;
            set;
        }
    }
}
